package com.avalon.erp.addon.pet.service.user;

import com.avalon.core.field.Field;
import com.avalon.core.field.Fields;
import com.avalon.core.service.AbstractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class PetLoginService extends AbstractService {
    @Override
    public String getServiceName() {
        return "pet.login";
    }

    @Override
    protected Field createNameField() {
        // 保存电话号码
        return Fields.createString("登陆名", true, true, 255);
    }

    private final Field password = Fields.createString("密码");
    private final Field petUserId = Fields.createMany2one("用户",
            "pet.user");
}
